package com.yuanfeng.authserver.feign;

import com.yuanfeng.commoms.util.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

@FeignClient(name = "mall-business", url = "http://localhost:8087")
public interface BusinessServiceClient {

    /**
     * 查询是否正常商家
     */
    @PostMapping("/shop/gate/query/GateShopIdUserId")
    ResponseResult queryGateShopIdByUserId(@RequestBody Map<String, String> map);


    /**
     * 查询是否正常商家
     *
     * @param map
     * @return
     */
    @PostMapping("/shopBase/info/shopName/queryShop")
    ResponseResult queryShopStatus(@RequestBody Map<String, String> map);

    /**
     * 删除店铺信息
     * @param map
     * @return
     */
    @PostMapping("/shop/company/h5/delShopInfo")
    ResponseResult delShopInfo(@RequestBody Map<String,String> map);

}
